const { post, postJSON } = require('../request.js')
exports.getLikeData = () => {
	return post('/investigate/query')
}
exports.getWxUserInfo = () => {
	return post('/user/info/get')
}
exports.getUserOpenIdFromCode = (code) => {
	return postJSON('/user/getOpenIdInSysByCode', { code } )
}
exports.patchUserInfo = data => {
	return postJSON('/user/info/update', data)
}
exports.userLogout = () => {
	return postJSON('/user/logout')
}
exports.getUserOrderList = () => {
	return postJSON('/user/order/list')
}
//香水订单详情
exports.getPerfumeOrderQuery = data => {
	return postJSON('/perfume/order/details',data)
}


exports.userOrderEvaluate = data => {
	return postJSON('/user/order/evaluate',data)
}

//游览记录
exports.getRecords = data => {
	return postJSON('/tourReport/getRecords',data)
}

//游览记录汇总
exports.getRecordTotal = data => {
	return postJSON('/tourReport/total',data)
}

//领取香水
exports.perfumeOrderComplete = id => {
	return postJSON(`/perfume/order/complete?orderId=${id}`)
}


